package com.china08.yxyapi.repository.mg.huodong;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;

import com.china08.yxyapi.entity.mg.huodong.healthcompetition.YxyCompetitionQues;

public interface YxyCompetitionQuesRepository extends MongoRepository<YxyCompetitionQues, String> {

	/**
	 * 根据学生id和试题order查询
	 * 
	 * @param studentId
	 * @return
	 */
	YxyCompetitionQues findTop1ByStageAndQuesNo(String stage, Integer order);

	List<YxyCompetitionQues> findByStageOrderByQuesNoAsc(String stageno);
}
